<template>
  <div class="dashboard-container">
    <div class="app-container">
      <el-card class="box-card">
        <div slot="header" class="clearfix">
          <!-- 搜索框 -->
          <div class="search" style="float: right; padding: 3px 0; width: 600px;">
            <el-select v-model="value" placeholder="全部经纪" style="width:120px">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              />
            </el-select>
            <el-input placeholder="请输入内容" class="input-with-select" style="width:350px">
              <el-button slot="append" icon="el-icon-search" />
            </el-input>
            <el-button style="color:#000">筛选</el-button>
          </div>
          <!-- 新增按钮 -->
          <el-button type="primary" @click="addbtn">添加客户</el-button>
        </div>
        <div>
          <el-table>
            <el-table-column label="图片" sortable="" width="110px">
              <template>
                <img class="avatar" alt="">
              </template>
            </el-table-column>
            <el-table-column label="名称" sortable="" width="110px" prop="name" />
            <el-table-column label="邮箱" sortable="" prop="email" />
            <el-table-column label="电话" sortable="" prop="phone" />
            <el-table-column label="经纪" sortable="" prop="jingji" />
            <el-table-column label="微信" sortable="" prop="wechat" />
            <el-table-column label="介绍" sortable="" prop="introduce" />
            <el-table-column prop="" label="操作" sortable="" fixed="right" width="280">
              <template>
                <el-button type="primary">编辑</el-button>
                <el-button type="danger">删除</el-button>
              </template>
            </el-table-column>
          </el-table>
        </div>
        <el-row type="flex" justify="center" align="middle" style="height: 60px">
          <el-pagination
            layout="prev, pager, next"
            :total="50"
          />
        </el-row>
      </el-card>
      <!-- 弹窗 -->
      <elDialogAdd ref="elDialogAdd" :show-dialog="isShowDialog" @closeDialog="isShowDialog=false" />
    </div>
  </div>
</template>

<script>
import elDialogAdd from './components/el_dialog.vue'
export default {
  components: {
    elDialogAdd
  },
  data() {
    return {
      options: [{
        value: '选项1',
        label: '黄金糕'
      }, {
        value: '选项2',
        label: '双皮奶'
      }, {
        value: '选项3',
        label: '蚵仔煎'
      }, {
        value: '选项4',
        label: '龙须面'
      }, {
        value: '选项5',
        label: '北京烤鸭'
      }],
      value: ''
    }
  },
  methods: {
    // 新增按钮
    async addbtn() {
      this.isShowDialog = true
    }
  }
}
</script>

<style lang="less" scoped>
</style>
